@charset "utf-8";

@import "common";
@import "reset";
$width:100%;

.content {
    width: $width;
    border-bottom:1px solid #DADADA;
    .cart-box{
        max-width: 1200px;
        margin: 0 auto;
        padding-top: 25px;
        .cart-l{
            width: 778px;
            h3{
                font-size: 18px;
                margin-bottom: 28px;
                font-weight: normal;
                
            }
            .vip-title{
                background: #efefef;
                height: 32px;
                line-height: 32px;
                overflow: hidden;
                text-overflow: ellipsis;
                span{
                    font-size: 14px;
                    color: #e02a2a;
                    padding-left: 20px;
                }
            }
            .cart-title{
                margin-top: 20px;
                width:$width;
                font-size: 14px;
                border-bottom: 1px solid #dadada;
                li{
                    width: 130px;
                    display: inline-block;
                    &:first-of-type{
                        width: 396px;
                    }
                    &:last-of-type{
                        width: 108px;
                    }
                }
            }
            .cart-table{
                width: 100%;
                padding-top: 24px;
                padding-bottom: 54px;
                border-bottom: 1px solid #DADADA;
                .money-td{
                    span{
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        width: 100px;
                        display: inline-block;
                    }
                }
                .cart-td{
                    width: 370px;
                    img{
                        vertical-align: top;
                    }
                    span{
                        display: inline-block;
                        padding-left: 18px;
                        overflow: hidden;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        vertical-align: middle;
                    }
                    .cart-span{
                        color: #b0b0b0;
                        padding-left:0 ;
                        line-height: 32px;
                        white-space: nowrap;
                        text-overflow: ellipsis;
                        vertical-align: middle;
                        width: 48px;
                    }
                    p{
                        &:first-child{
                            margin-bottom: 42px;
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                            width: 120px;
                        }
                        &:last-of-type{
                            color: #B0B0B0;
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                            width: 168px;
                        }
                    }
                    a{
                        color: #000000;
                    }
                }
               .cart-num{
                   vertical-align: top;
                   text-align: center;
                   .goods-num{
                       position: relative;
    //                     display: inline-block;
                       height: 25px;
                       line-height: 25px;
                       width: 85px;
                       border: 1px solid #DFDFDF;
                       border-radius: 2px;
                       margin-top: -2px;
                       text-align: center;
                       color: #333333;
                       font-size: 12px;
                   }
                   .goods-minus,.goods-plus{
                       width: 24px;
                       height: 23px;
                       border: 1px solid #f9f9f9;
                       border-radius: 2px;
                   }
                   .goods-minus span,.goods-plus span{
                       position: absolute;
                       top: 11px;
                       left: 8px;
                       height: 2px;
                       width: 10px;
                       background: #CCCCCC;
                   }
                   .goods-minus{
                           position: absolute;
                           top: 0;
                           left: 0;
                           cursor: pointer;
                           border-right: none;
                       }
                    .goods-plus{
                           position: absolute;
                           top: 0;
                           right: 0;
                           cursor: pointer;
                           border-left: none;
                           span{
                               &:first-child{
                                   top: 7px;
                                   left: 12px;
                                   height: 10px;
                                   width: 2px;
                               }
                       }
                    }
                    a{
                        color: #000000;
                        margin-right: 66px;
                    }
               }
               td{
                   &:nth-of-type(2){
                       width: 150px;
                       vertical-align: top;
                   }
                   &:nth-of-type(3){
                       width: 130px;
                       vertical-align: top;
                   }
                   &:nth-of-type(4){
                       vertical-align: top;
                   }
               }
            }
            .recommend-nav{
                margin-top: 48px;
                h3{
                    font-size: 14px;
                }
            }
        }
        .cart-r{
            width: 400px;
            background: #efefef;
            height: 352px;
            margin-top: 52px;
            border-radius: 5px;
            .cart-total{
                max-width: 380px;
                margin: 0 auto;
                &:nth-of-type(2){
                    padding-bottom: 18px;
                    border-bottom: 1px solid #dadada;
                }
            }
            .li-table{
                    display: table;
                    width: $width;
                    padding-top: 28px;
                    font-size: 14px;
                     &:nth-of-type(2){
                            padding-top: 10px;
                        }
                    .li-td{
                        display: table-cell;
                        text-align: center;
                    }
                }
                .freight{
                    display: table;
                    font-size: 14px;
                    margin-top: 34px;
                    &:nth-of-type(2){
                        margin-top: 0;
                    }
                    .freight-span{
                        display: table-cell;
                        text-align: center;
                        &:first-child{
                            width: 143px;
                        }
                        &:last-child{
                            width: 182px;
                            text-align: right;
                            color: #b0b0b0;
                        }
                    }
                    .freight-span2{
                        display: table-cell;
                        width: 182px;
                        text-align: right;
                        color: #000000;
                    }
                }
                .cart-money{
                    margin-top: 19px;
                    li{
                        width: 188px;
                        display: inline-block;
                        text-align: center;
                        font-size: 18px;
                        span{
                            overflow: hidden;
                            white-space: nowrap;
                            text-overflow: ellipsis;
                            width:140px;
                            display: inline-block;
                        }
                    }
                }
                .cart-btn{
                    width: $width;
                    margin: 0 auto;
                    text-align: center;
                    padding-top: 62px;
                    a{
                        background: #584c4c;
                        width: 299px;
                        height: 37px;
                        display: inline-block;
                        line-height: 37px;
                        color: #FFFFFF;
                        border-radius: 5px;
                    }
                }
        }
    }
}
